home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / wais / bin / check-sources next >
Text File  |  1995-05-09  |  996b  |  35 lines

  1. #!/bin/sh
  2.  
  3. # WIDE AREA INFORMATION SERVER SOFTWARE:
  4. #   No guarantees or restrictions.  See the readme file for the full standard
  5. #   disclaimer.
  6. #
  7. # Script for checking all source in a directory to see if they are alive.
  8. # This is useful for a system administrator.  If an advertized server is
  9. # down consistently, please notify the maintainer and the maintainer of the
  10. # directory of servers that the source came from.  (the master directory of
  11. # servers is maintained by brewster@think.com)
  12. #
  13. # $Log:    check-sources,v $
  14. # Revision 1.2  92/02/23  17:06:03  jonathan
  15. # changed name to waisping (for server logs)
  16. # $Header: /tmp_mnt/net/quake/proj/wais/wais-8-b5/bin/RCS/check-sources,v 1.2 92/02/23 17:06:03 jonathan Exp $
  17. #
  18.  
  19. if (test $# -ne 1)
  20. then
  21.     echo "usage: $0 <wais-source-directory>"
  22.     echo "  Checks all sources in the directory <wais-source-directory>"
  23.     echo "  to see if they are responding to WAIS requests."    
  24.     exit 1
  25. fi
  26.  
  27. for s in $1/*.src
  28. do
  29.      waisping -c $1 `basename $s`
  30. done
  31.  
  32.  
  33.  
  34.